<template>
    <div>
        <ul class="flex-box flex-box-1" v-if="flextype === '1'">
            <li>1</li>
            <li>2</li>
            <li>3</li>
        </ul>

        <ul class="flex-box flex-box-2" v-if="flextype === '2'">
            <li>1</li>
            <li>2</li>
            <li>3</li>
        </ul>

        <ul class="ul-s flex-box-3" v-if="flextype === '3'">
            <li>1</li>
            <li>2</li>
            <li>3</li>
        </ul>

        <ul class="ul-s flex-box-3 flex-box-4" v-if="flextype === '4'">
            <li>1</li>
            <li>2</li>
            <li>3</li>
        </ul>

        <ul class="ul-s flex-box-3 flex-box-5" v-if="flextype === '5'">
            <li>1</li>
            <li>2</li>
            <li>3</li>
        </ul>
    </div>
</template>

<script>
export default {
    props: {
        flextype: {
            type: String,
            default: "1"
        }
    },
    data() {
        return {}
    },
    methods: {
        setClass() {
            return ""
        }
    }
}
</script>

<style scoped>
.ul-s {
    padding: 0;
    margin: 0;
    list-style: none;
}

.ul-s li {
}

.flex-box {
    width: 100%;
    height: 100px;
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
}

.flex-box li {
    width: 80px;
    height: 80px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    margin-left: 20px;
    text-align: center;
    line-height: 80px;
    border-radius: 10px;
}

.flex-box-1 {
    flex-direction: row;
    align-items: center;
    background: #fef3c7;
}

.flex-box-1 li {
    background: rgb(245, 158, 11);
}

.flex-box-2 {
    flex-direction: row-reverse;
    align-items: center;
    background: #e0f2fe;
}

.flex-box-2 li {
    background: rgb(14, 165, 233);
}

.flex-box-3 {
    align-items: center;
    flex-direction: column;
    background: #ecfdf5;
    height: 250px;
    padding: 20px;
}

.flex-box-3 li {
    height: 50px;
    border-radius: 10px;
    background: rgb(16, 185, 129);
    margin-top: 20px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    text-align: center;
    line-height: 50px;
}

.flex-box-4 {
    display: flex;
    align-items: center;
    flex-direction: column-reverse;
    background: #ffe4e6;

    height: 250px;
    padding: 20px;
}
.flex-box-4 li {
    width: 100%;
    background: rgb(244, 63, 94);
}

.flex-box-5 {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}
.flex-box-5 li {
    width: 300px;
    margin-right: 20px;
}
</style>